package com.itcase.JDBC_02.service;

import com.itcase.JDBC_02.dao.studentDao;
import com.itcase.JDBC_02.dao.studentDaoImpl;
import com.itcase.JDBC_02.domin.student;

import java.util.ArrayList;

public class studentServiceIMml implements studentService {
    studentDao st = new studentDaoImpl();

    @Override
    public ArrayList<student> findAll() {
     return st.findAll();

    }

    @Override
    public student findById(Integer id) {
        return st.findById(id);
    }

    @Override
    public int insert(student stu) {
        return st.insert(stu);
    }

    @Override
    public int update(student stu) {
        return st.update(stu);
    }

    @Override
    public int delete(Integer id) {
        return st.delete(id);
    }
}
